package com.fowo.api.model.nav.after.sell.order.detail;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.fowo.api.common.excel.ImageConvert;
import com.fowo.api.sys.entity.SysFile;
import java.util.List;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 订单管理售后工单售后信息 导入导出辅助模型 */
@Getter
@Setter
public class NavAfterSellOrderDetailExcelPo {

  @Size(max = 50, message = "平台单号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "平台单号")
  private String platformOrderId;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "所属订单管理售后工单")
  private String parentNavAfterSellOrderAfterId;

  @ExcelIgnore
  @ExcelProperty(value = "所属订单管理售后工单")
  private Long parentNavAfterSellOrder;

  @ExcelProperty(value = "订单管理产品编号")
  private Long navSellOrderDetailId;

  @ExcelProperty(value = "图片", converter = ImageConvert.class)
  private List<SysFile> img;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "产品")
  private String productIdName;

  @ExcelIgnore
  @ExcelProperty(value = "产品")
  private Long productId;

  @Size(max = 50, message = "品名长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "品名")
  private String productName;

  @Size(max = 50, message = "SKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "SKU")
  private String sku;

  @Size(max = 50, message = "MSKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "MSKU")
  private String msku;

  @ExcelProperty(value = "单价")
  private java.math.BigDecimal price;

  @ExcelProperty(value = "订购数量")
  private Integer quantity;

  @ExcelProperty(value = "售后数量")
  private Integer afterQuantity;

  @ExcelProperty(value = "商品金额")
  private java.math.BigDecimal amount;

  @Size(max = 50, message = "售后说明长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "售后说明")
  private String afterRemark;

  @ExcelProperty(value = "售后图片", converter = ImageConvert.class)
  private List<SysFile> afterImg;

  @Size(max = 50, message = "商品备注长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "商品备注")
  private String remark;

  @ExcelProperty(value = "已退款")
  private java.math.BigDecimal refundAmount;

  @ExcelProperty(value = "本次退款")
  private java.math.BigDecimal thisAmount;
}
